import multiprocessing
from ultralytics import YOLO

def main():
    model = YOLO('yolov8n.pt')
    model.train(data='coco.yaml', epochs=300)
    model.val()

if __name__ == '__main__':
    multiprocessing.freeze_support()
    main()

